﻿<navigation:Page x:Class="Didsoft.SalesLive.UI.Views.VwPersonas" 
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           mc:Ignorable="d"
            xmlns:didsoft_controls="clr-namespace:Didsoft.Silverlight.Controls;assembly=Didsoft.Silverlight.Controls"
           
            xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
           d:DesignWidth="748" d:DesignHeight="508"
           Title="VwPersonas Page">
    <Grid x:Name="LayoutRoot">
        <didsoft_controls:FormHeader TitleText="Administrar Personas" DescriptionText="Administracion de Personas">

            <Grid>

                <Grid Grid.Column="0">

                    <TextBlock Height="16" HorizontalAlignment="Left" Margin="6,6,0,0" x:Name="textBlock1" Text="DATOS PERSONALES" VerticalAlignment="Top" Width="140" FontWeight="Bold" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="120,28,0,0" x:Name="textBox1" VerticalAlignment="Top" Width="216" Text="{Binding PersonaObj.ApellidoPaterno, Mode=TwoWay}" />
                    <TextBox Height="23" Margin="433,28,6,0" x:Name="textBox2" VerticalAlignment="Top" Text="{Binding PersonaObj.ApellidoMaterno, Mode=TwoWay}" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="120,55,0,0" x:Name="textBox3" VerticalAlignment="Top" Width="216" Text="{Binding PersonaObj.Nombre, Mode=TwoWay}" />
                    <TextBlock Height="23" HorizontalAlignment="Left" Margin="18,32,0,0" x:Name="textBlock2" Text="Apellido Paterno:" VerticalAlignment="Top" Width="96" />
                    <TextBlock Height="23" HorizontalAlignment="Left" Margin="347,32,0,0" x:Name="textBlock3" Text="Ap. Materno:" VerticalAlignment="Top" Width="80" />
                    <TextBlock Height="23" HorizontalAlignment="Left" Margin="58,60,0,0" x:Name="textBlock4" Text="Nombres:" VerticalAlignment="Top" Width="66" />
                    <TextBlock Height="18" HorizontalAlignment="Left" Margin="371,60,0,0" x:Name="textBlock6" Text="Genero:" VerticalAlignment="Top" Width="56" />
                    <ComboBox Height="22" HorizontalAlignment="Left" Margin="433,56,0,0" x:Name="cmbGenero"
                          SelectedItem="{Binding PersonaObj.Genero, Mode=TwoWay}"
                          VerticalAlignment="Top" Width="138" ItemsSource="{Binding Generos, Mode=TwoWay}" />
                    <TextBlock Height="23" HorizontalAlignment="Left" Margin="10,86,0,0" x:Name="textBlock7" Text="Fecha Nacimiento:" VerticalAlignment="Top" Width="104" />
                    <sdk:DatePicker Height="23" HorizontalAlignment="Left" Margin="120,82,0,0" x:Name="datePicker1" VerticalAlignment="Top" Width="150" SelectedDate="{Binding PersonaObj.FechaNacimiento, Mode=TwoWay}" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="120,110,0,0" x:Name="textBox4" VerticalAlignment="Top" Width="216" Text="{Binding PersonaObj.CorreoElectronico, Mode=TwoWay}" />
                    <TextBlock Height="23" HorizontalAlignment="Left" Margin="10,114,0,0" x:Name="textBlock9" Text="Correo Clectronico:" VerticalAlignment="Top" Width="114" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="120,138,0,0" x:Name="textBox5" VerticalAlignment="Top" Width="274" Text="{Binding PersonaObj.SitioWeb, Mode=TwoWay}" />
                    <TextBlock Height="23" HorizontalAlignment="Left" Margin="45,141,0,0" x:Name="textBlock10" Text="Sitio Web :" VerticalAlignment="Top" Width="69" />
                    <CheckBox Content="Notificar Novedades" Height="16" HorizontalAlignment="Left" Margin="371,112,0,0" x:Name="checkBox1" VerticalAlignment="Top" IsChecked="{Binding PersonaObj.NotificarNovedades, Mode=TwoWay}" />
                    <Button Content="Guardar" Height="23"  HorizontalAlignment="Left" Margin="179,166,0,0" x:Name="button1" VerticalAlignment="Top" Width="75" Command="{Binding CmdGuardar, Mode=TwoWay}" />
                    <Button Content="Nuevo" Height="24" Margin="120,166,0,0" VerticalAlignment="Top" Command="{Binding CmdNuevo, Mode=TwoWay}" HorizontalAlignment="Left" Width="55" d:LayoutOverrides="HorizontalAlignment" />
                    <Button Content="Eliminar" Height="23" HorizontalAlignment="Left" Margin="261,167,0,0" x:Name="button2_Copy" Command="{Binding CmdEliminar, Mode=TwoWay}" VerticalAlignment="Top" Width="75" />
                    <sdk:DataGrid AutoGenerateColumns="True" Margin="0,196,0,37" x:Name="dataGrid1" ItemsSource="{Binding Personas, Mode=TwoWay}" SelectedItem="{Binding PersonaObj, Mode=TwoWay}" />
                </Grid>
            </Grid>
        </didsoft_controls:FormHeader>
    </Grid>
</navigation:Page>
